Communication between agents
Agents communicate one with another via one of the following tools:
pass_question– passes user questions to another agent. Receiving agent name must be specified via theagentparameter. In most cases, you can reference the tool by it’s description in the prompt. For example:If user asks a question about university courses, pass the question to `university-courses` agent.send_message– sends the message specified via themessageparameter to another agent. Receiving agent name must be specified via theagentparameter. In most cases, you can reference the tool by its description in the prompt. For example:If user chooses to schedule an appointment, send a message with caller's name, SSN and INTENT to `doctor-schedule` agent.
The recipient specified via the agent parameter may be either a sub-agent or a sub-flow – use the sub-flow's name exactly as you would an agent's. For details, see Using flows as sub-agents.
To enable communication between agents you must add appropriate communication tools - pass_question / send_message – to the Tools list for the agents that use them.